package com.owc.common.exception;

import com.owc.common.enums.ExceptionEnum;

/**
 * @Author Jackies
 * @Date 2019/12/3 20:33
 * @Description TODO://
 **/
public class LoginException extends OWCException {

    public LoginException(String message) {
        super(message);
    }

    public LoginException(ExceptionEnum exceptionEnum){
        super(exceptionEnum.getMessage());
        this.setCode(exceptionEnum.getCode());
    }

    public LoginException(){
        super(ExceptionEnum.TOKEN_EXPIRE_ERR.getMessage());
    }

    public LoginException(String message, Throwable cause) {
        super(message, cause);
    }

}
